package com.linwt.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.linwt.bean.Record;
import com.linwt.mapper.RecordMapper;

@Service
public class RecordService {
	@Autowired
	RecordMapper recordMapper;

	public void addRecord(Record record) {
		 recordMapper.addRecord(record);
	}
	
	public List<Record> listAllRecords(){
		return recordMapper.listAllRecords();
	}
}
